package com.yao.wechat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yao.wechat.entity.dto.PublicDto;

/**
 * 微信公众号表 接口
 *
 * @author autoCode
 * @version 1.0.0-SNAPSHOT
 * @date 2020-07-23
 */
public interface PublicService extends IService<PublicDto> {

    String getAccessToken(String originId);

    String getAccessToken(String appId, String appSecret);

    /**
     * 功能描述 : 获取微信AccessToken
     *
     * @param originId
     * @param appId
     * @param appSecret
     * @return {@link String}
     * @author yaoyuming
     * @date 2020/7/23 0023
     */
    String getAccessToken(String originId, String appId, String appSecret);

    /**
      * 功能描述 : 刷新微信AccessToken
      * @param originId
      * @author yaoyuming
      * @date 2020/7/23 0023
      * @return {@link String}
      */
    String refreshAccessToken(String originId);
}